import mitt from 'mitt';
import { TransformData } from './stores/transformBarStore';
import { ModeType } from './stores/toolBarStore';
import { CursorType } from './animation/controllers/CursorManager';
import { Mode as TransformModeType } from './stores/transformBarStore';
import { BoneData } from './stores/propertyStore';
import { CreateDisplayData } from './stores/sceneStore';

type Events = {
    updateTransform: TransformData;
    changeModeType: ModeType;
    changeCursor: CursorType;
    changeTransformModeType: TransformModeType;
    updateBoneData: BoneData;
    hoverItemEnter: string;
    hoverItemLeave: string;
    clickBone: string;
    createDisplay:CreateDisplayData;
};

const emitter = mitt<Events>();
export { emitter };